max problem using divide and conquer in c